package com.heihei.controller.test;

import com.heihei.common.response.ResponseVO;
import com.heihei.service.test.RedisTestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = {"redis 测试"})
@RestController
@RequestMapping("/redis-test")
public class RedisTestController {
    @Resource
    private RedisTestService redisTestService;

    @ApiOperation(value = "redis字符串操作示例")
    @GetMapping("/redis-str-test")
    public ResponseVO<String> redisStrTest() {
        return this.redisTestService.redisStrTest();
    }
}
